<!-- App.vue -->
<template>
  <h3>总体表准差：<math-jax latex="\sigma = \sqrt{\frac{1}{N} \sum_{i=1}^{N} (x_i - \mu)^2}" /></h3>


  <h3>块级公式：</h3>
  <math-jax :block="true" :latex="eq" />

</template>

<script setup>
import { ref } from 'vue'
import { MathJax } from 'mathjax-vue3';

const eq = ref(String.raw`\begin{aligned}
\nabla \times \vec{\mathbf{B}} &= \mu_0\vec{\mathbf{J}} + \mu_0\varepsilon_0\frac{\partial\vec{\mathbf{E}}}{\partial t} \\
\nabla \cdot \vec{\mathbf{E}} &= \frac{\rho}{\varepsilon_0}
\end{aligned}`)
</script>